$(function() {
	
	
	$('.menu').click(function(){
		$('.header').toggleClass('h-menu-show')
	})
	
	$('.wap-menu .ul li .dropdown').click(function(){
		$(this).addClass('on').parent().siblings().find('.dropdown').removeClass('on');
		$(this).siblings().slideToggle().parent().siblings().find('.sub-menu').hide();
	});
	
	$('.h-bot .h-links').click(function(){
		$('.h-search').show();
	})
	
	
	
	
	var banner = new Swiper('.banner .swiper-container', {
		loop:true,
		speed:2000,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		pagination:{
			el: '.swiper-pagination',
			clickable: true,
		}
	});
	
	
	var banner1 = new Swiper('.swiper-container.swiper1', {
		loop:true,
		speed:500,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		pagination:{
			el: '.swiper-pagination',
			clickable: true,
		},
	});
	
	var banner2 = new Swiper('.swiper-container.swiper2', {
		loop:true,
		speed:500,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		navigation: {
			nextEl: '.next',
			prevEl: '.prev',
		},
	});
	
	
	
	var banner3 = new Swiper('.swiper-container.swiper3', {
		loop:true,
		speed:500,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		pagination:{
			el: '.swiper-pagination',
			clickable: true,
			renderBullet: function (index, className) {
			  return '<span class="' + className + '">' + (index + 1) + '</span>';
			},
		},
		navigation: {
			nextEl: '.next',
			prevEl: '.prev',
		},
	});
	
	
	
	
	
	var apply = new Swiper('.apply .swiper-container', {
		loop:true,
		speed:2000,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		pagination:{
			el: '.swiper-pagination',
			clickable: true,
		}
	});
	
	
	
	var banner4 = new Swiper('.swiper4', {
		loop:true,
		speed:500,
		type:'fraction',
		passiveListeners : false,
		autoplay: true,
		navigation: {
			nextEl: '.next',
			prevEl: '.prev',
		},
		pagination:{
			el: '.swiper-pagination',
			clickable: true,
		}
	});
	
	
	
	$('.download').click(function(){
		$('.login').toggle();
		$('.zhezhao').toggle();
	})
	
	$('.close').click(function(){
		$('.login').toggle();
		$('.zhezhao').toggle();
	})
	
	$('.more').click(function(){
		$(this).parent().toggleClass('on');
		$(this).toggleClass('on');
	})
	
});